
/**
 * 
 * 
 * 你可以打开F12控制台，使用window.connector进行测试
 * 
 * 
 * 请接入onlyoffice测试环境
 * 并使用以下config初始化
 */
<script type="text/javascript" src="http://47.94.91.67:10100/web-apps/apps/api/documents/api.js"></script>

var config = {
    "documentType": "word",
    "document": {
        "title": "test.docx",
        "url": "http://47.94.91.67/demo_file/comment_test.docx",
        "permissions": {
            "print": false,
            "download": true
        },
        "fileType": "docx",
        "key": "e932e7bb1e4d449aa9a7d8ss517"
    },
    "editorConfig": {
        "customization": {
            "autosave": false,
            "compactToolbar": true,
            "forcesave": true,
            "toolbarNoTabs": true,
            "help": false,
            "compactHeader": true,
            "hideRightMenu": true
        },
        "mode": "edit",
        "callbackUrl": "https://api.docs.onlyoffice.com/dummyCallback",
        "lang": "zh-CN",
        "user": {
            "name": "曹瑞剑雄",
            "id": "103"
        }
    }
};